<?php

namespace app\dao;

use app\model\Exam;

class ExamDao extends BaseDao
{
    private $query;

    protected function setModel()
    {
        // TODO: Implement setModel() method.
        return Exam::class;
    }

    public function __construct()
    {
        $this->query = new Exam();
    }
    public  function getAll(){
        return $this->query->select();
    }
    public function getOne(){
        return$this->query->find();
    }
    public function getField($field){
        $this->query = $this->query->field($field);
        return $this;
    }
}